package com.xiaomaoguai.guava;

import java.util.List;

import com.google.common.base.CharMatcher;
import com.google.common.base.Splitter;
import com.google.common.collect.HashMultiset;
import com.google.common.collect.Multiset;

public class Basic {

	public static void main(String[] args) {
		List<String> list = Splitter.on(' ').splitToList("A b 3");
		System.out.println(list);

		Multiset<Integer> lengths = HashMultiset.create();
		for (String string : list) {
			if (CharMatcher.JAVA_UPPER_CASE.matchesAllOf(string)) {
				lengths.add(string.length());
			}
		}
		
		System.out.println(lengths);
		
	}
}
